package dLogistic.domain.model.Klient;

import dLogistic.domain.model.BaseAggregateRoot;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Przemek on 2014-10-23.
 */
@Entity
@Table(name = "Klient")
public class KlientAggr extends BaseAggregateRoot {

    //private dLogistic.domain.model.sharedValueObjects.Adres adres;
    @Id
    private String uuid;    //uuid

    private String imie;
    private String nazwisko;
    private String telefon;
    private String email;

   // private String adres;   //uuid

    public String imie() {
        return imie;
    }

    public String nazwisko() {
        return nazwisko;
    }

    public String telefon() {
        return telefon;
    }

    public String email() {
        return email;
    }

    public KlientAggr(String imie, String nazwisko, String telefon, String email, String uuid){
        this.imie = imie;
        this.nazwisko = nazwisko;
        this.telefon = telefon;
        this.email = email;
        this.uuid = uuid;
    }

    public String uuid(){
        return uuid;
    }

    public KlientAggr(){

    }




}
